<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" title="Joey Arhar" href="mailto:jarhar@chromium.org">
<link rel="help" href="https://github.com/WICG/display-locking">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<div id=parentid>
  <div id=childid>hello</div>
</div>

<script>
async_test(t => {
  parentid.addEventListener('beforematch', t.step_func_done(() => {}));
  window.location.hash = '#childid';
}, 'Tests that the beforematch event bubbles');
</script>
